﻿using Microsoft.VisualStudio.Shell;
using System;
using System.Runtime.InteropServices;
using System.Threading;
using Task = System.Threading.Tasks.Task;

namespace VSIX11
{
    [PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)]
    [Guid(VSIX11Package.PackageGuidString)]
    [ProvideMenuResource("Menus.ctmenu", 1)]
    public sealed class VSIX11Package : AsyncPackage
    {
        public const string PackageGuidString =PackageGuids.guidVSIX11PackageString ;

        #region Package Members

        protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress<ServiceProgressData> progress)
        {
            await this.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
            await Command1.InitializeAsync(this);
            //aad9266a-3350-47b9-bfe5-25a0ae6c344c60b8c56f-9675-4c8d-b28d-e8b86eb93dfe61ab3592-ac5e-45d0-b98d-2370f6aa8d71
            //
        }

        #endregion
    }
}
